package com.hong.chapter7;

/**
 * class锁测试
 */
public class SychronizedStaticTest {
    public static void main(String[] args) {

        new Thread("t1"){
            @Override
            public void run() {
                SychronizedStatic.m1();
            }
        }.start();

        new Thread("t2"){
            @Override
            public void run() {
                SychronizedStatic.m2();
            }
        }.start();

        new Thread("t3"){
            @Override
            public void run() {
                SychronizedStatic.m3();
            }
        }.start();
    }
}
